package org.create;

import org.create.bean.TableInfo;
import org.create.builder.*;
import org.create.utils.LogTool;

import java.util.List;


public class Application {
    public static void main(String[] args) {
        BuildProject.run();
        LogTool.printMsg("--构建project模块执行完毕--");
        List<TableInfo> tableInfoList = BuildTable.run();
        LogTool.printMsg("--构建table模块执行完毕--");
        BuildPackageParam.run();
        LogTool.printMsg("--构建PackageParam模块执行完毕--");
        BuildComment.run(tableInfoList);
        LogTool.printMsg("--构建Comment模块执行完毕--");
        BuildUtils.run();
        LogTool.printMsg("--构建Utils模块执行完毕--");
        BuildApplication.run();
        LogTool.printMsg("--构建Application模块执行完毕--");
        BuildQuery.run(tableInfoList);
        LogTool.printMsg("--构建Query模块执行完毕--");
        BuildMappers.run(tableInfoList);
        LogTool.printMsg("--构建Mapper模块执行完毕--");
        BuildMapperXml.run(tableInfoList);
        LogTool.printMsg("--构建MapperXml模块执行完毕");
        BuildService.run(tableInfoList);
        LogTool.printMsg("--构建Service模块执行完毕");
        BuildServiceImpl.run(tableInfoList);
        LogTool.printMsg("--构建ServiceImpl模块执行完毕");
        BuildController.run(tableInfoList);
        LogTool.printMsg("--构建Controller模块执行完毕");
        BuildYml.run();
        LogTool.printMsg("--构建yml模块执行完毕");
        BuildTest.run();
        LogTool.printMsg("--构建Test模块执行完毕");
    }
}
